public class Main1 {
    public static void main(String[] args) {
        String str = "1,2,3,";
        String[] chars = str.split(",");
        for (int i = 0; i < chars.length; i++) {
            System.out.print(chars[i]+"");
        }
    }
}
